import { network } from '@/utils';
import { TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryPostManagementList(params: TableListParams) {
  return network.get(basic.posthouse_list, {
    params,
  });
}

export async function queryGardenList(params: any) {
  params = {
    ...params,
    pageIndex: 1,
    pageSize: 1000,
  };
  return network.get(basic.garden_list, { params });
}

export async function operChangeStatus(params: { id: number, isValid: number }) {
  return network.put(basic.posthouse_status, { data: params });
}
